import request from '@/utils/request'
/**
* get list ?
* @param params {*}
*/
export function _get (params) {
    return request({
        url: '/otherPurchaseGoods/getOtherPurchaseGoodsByPage',
        method: 'get',
        params: params
    })
}
export function _getAllOtherPurchaseGoods (params) {
    return request({
        url: '/otherPurchaseGoods/getAllOtherPurchaseGoods',
        method: 'get',
        params: params
    })
}
/**
* get row ?
* @param params {*}
*/
export function _find (params) {
    return request({
        url: '/otherPurchaseGoods/findOtherPurchaseGoodsByPage',
        method: 'get',
        params: params
    })
}

// 新增數據
export function _post (params) {
    return request({
        url: '/otherPurchaseGoods/addOtherPurchaseGoods',
        method: 'post',
        data: params
    })
}
// 修改數據
export function _put (id, params) {
    return request({
        url: '/otherPurchaseGoods/editOtherPurchaseGoods?idOthPurGoo=' + id,
        method: 'put',
        data: params
    })
}
// 刪除數據
export function _delete (params) {
    return request({
        url: '/otherPurchaseGoods/deleteOtherPurchaseGoods',
        method: 'delete',
        params: params
    })
}
